package cn.edu.gduf.luowowo.search.repository;

import cn.edu.gduf.luowowo.search.domain.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategySearchRepository extends ElasticsearchRepository<StrategyTemplate, Long> {
    /**
     * 根据主题id查询
     * @return
     */
    List<StrategyTemplate> findByThemeId(Long themeId);

    /**
     * 根据目的地名称查询相关的攻略数据
     * @param destName
     * @return
     */
    List<StrategyTemplate> findByDestName(String destName);
}
